package com.hqyj.interceptor;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 项目:exam-springboot-230701
 * 描述:
 * 时间:2023/10/7 15:23
 * 作者:admin
 * 版本:1.0
 **/
//@Configuration
public class JwtAnConfig implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new JwtAnInterceptor())
                .addPathPatterns("/**");//拦截所有地址

    }
}
